package com.dd.ms.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.dd.ms.auth.pojo.DO.PermissionDO;
import com.dd.ms.common.pojo.annotation.Explanation;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author liuxianmeng
 * @CreateTime 2025/7/10 8:30
 * @Description 角色实体
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RoleEntity {
    @Explanation(value = "角色ID 自增主键")
    private Long roleId;
    @Explanation(value = "角色名称 不能为空")
    private String roleName;
    @Explanation(value = "角色描述")
    private String roleDesc;
    @Explanation(value = "角色有效期开始时间")
    private LocalDateTime validityPeriodStart;
    @Explanation(value = "角色有效期结束时间")
    private LocalDateTime validityPeriodEnd;

    @Explanation(value = "角色所具有的权限")
    private List<PermissionDO> permissions;
}
